package com.yjd.pub.tag.dao.impl;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.comm.tag.model.TagRelevanceModel;
import com.yjd.pub.tag.dao.ITagRelevanceDao;

import java.util.Map;

/**
 * <b>description</b>：标签关联数据访问层 <br>
 * <b>time</b>：2017-06-27 08:58:34 <br>
 * <b>author</b>： yangchangyan@yijiedai.com
 */
@Component("tagRelevanceDao")
public class TagRelevanceDaoImpl extends BaseDaoImpl implements ITagRelevanceDao {

	private static final String SQLMAPNAMESPACE = TagRelevanceModel.class.getName();
	private static final String PKNAME = "id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	/**
	 * 删除标签关联
	 *
	 * @param param
	 * @throws Exception
	 */
	@Override
	public int deleteTagRelevance(Map<String, Object> param) throws Exception {
	 return 	this.getSqlMap(false).delete(getStatement("delete"),param);
	}
}
